//
// Created by pedro on 18-10-20.
//

#ifndef ALGORITHM_HEAP_SORT_H
#define ALGORITHM_HEAP_SORT_H

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "utils.h"


int left(int i);

int right(int i);

void max_heapify(int *data, int index, int heap_size);

void build_max_heap(int *data, int length);

void heap_sort(int *data, int length);

#endif //ALGORITHM_HEAP_SORT_H
